/*
 * @Author: 葛文杰
 * @Date: 2021/2/1 09:33
 * @Description: egg rule.js
 */
'use strict';

// 新增
const createCode = {
    code: [
        {
            required: true
        }
    ],
    value: [
        {
            required: true
        }
    ],
    label: [
        {
            required: true
        }
    ]
};
// 查询
const codes = {
    codes: [
        {
            required: true
        },
        {
            type: 'string',
            message: '必须为字符串'
        }
    ]
};

module.exports = {
    createCode,
    codes
};
